/**
 * 
 */
function doPrint() {
	bdhtml = window.document.body.innerHTML;
	sprnstr = "<!--startprint-->";
	eprnstr = "<!--endprint-->";
	prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
	prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
	window.document.body.innerHTML = prnhtml;
	window.print();
	location.reload(true);
}
$(document).ready(
		function() {
			if (sessionStorage.getItem("state") != "2") {
				location.href = "ExamProcess.html"
			} else {
				$.ajax({
					url : '../queryUser.action',
					type : 'post',
					dataType : 'json',
					data : {
						userId : sessionStorage.getItem("userId")
					},
					success : function(data) {
						var result = eval("(" + data + ")");
						if (result.flag == "true") {
							var userInfo = eval("(" + result.userInfo + ")");
							$("#id").text(userInfo.id);
							$("#name").text(userInfo.name);
							$("#photo").attr("src",
									"../" + userInfo.userPhoto);
							$("#eeid").text(userInfo.eeid);
							if(userInfo.admitId!="\"null\"")
							$("#registId").text(userInfo.admitId);
							$("#gType").text(result.general);
							$("#subType").text(result.sub);
							$("#epname").text(result.ep);
							$("#epAddress").text(result.epAddress);
							$("#gender").text(userInfo.gender);
							
						}

					}

				})
			}

		})